package com.lzy.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 菜单权限表
 * </p>
 *
 * @author author
 * @since 2025-05-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("menu")
@ApiModel(value="Menu对象", description="菜单权限表")
public class Menu implements Serializable {

    @ApiModelProperty(value = "菜单ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "菜单名称")
    private String name;

    @ApiModelProperty(value = "路由路径")
    private String path;

    @ApiModelProperty(value = "组件路径")
    private String component;

    @ApiModelProperty(value = "菜单图标")
    private String icon;
    
    @ApiModelProperty(value = "菜单标题")
    private String title;

    @ApiModelProperty(value = "所需角色,逗号分隔(0管理员,1教师,2学生)")
    private String roles;
    
    @ApiModelProperty(value = "父菜单ID,0表示一级菜单")
    private Integer parentId;
    
    @ApiModelProperty(value = "显示顺序")
    private Integer orderNum;
    
    @ApiModelProperty(value = "是否隐藏,0显示,1隐藏")
    private Boolean isHidden;
} 